<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>

<c:choose>
	<c:when test="${q5 != null}">
		<p>${fn:escapeXml("#{ db.(min(Service.minServiceCost) as minimum, avg(Service.minServiceCost) as average, max(Service.maxServiceCost) as maximum )};")}</p>
		<p>
			<b>MIN</b> ${q5.minimum}
		</p>
		<p>
			<b>AVG</b> ${q5.average}
		</p>
		<p>
			<b>MAX</b> ${q5.maximum}
		</p>
	</c:when>
	<c:otherwise>
		<p>Sorry no data found :(</p>
	</c:otherwise>
</c:choose>